<template>
  <div>
    <van-popup v-model:show="dialogShow" :close-on-click-overlay="false">
      <div class="main">
        <div class="title">榜单奖励</div>
        <div class="content">
          <div class="item">
            <img src="@/assets/childrenDay/awardRank/TOP1.png" alt="" />
          </div>
          <div class="item">
            <img src="@/assets/childrenDay/awardRank/TOP2.png" alt="" />
          </div>
          <div class="item">
            <img src="@/assets/childrenDay/awardRank/TOP3.png" alt="" />
          </div>
          <div class="item">
            <img src="@/assets/childrenDay/awardRank/TOP4.png" alt="" />
          </div>
          <div class="item">
            <img src="@/assets/childrenDay/awardRank/TOP5.png" alt="" />
          </div>
        </div>
      </div>
      <!-- 关闭图标 -->
      <div class="close" @click="onClose"></div>
    </van-popup>
  </div>
</template>

<script setup>
import { computed } from 'vue'

const props = defineProps({
  show: {
    type: Boolean,
    default: false,
  },
})
const dialogShow = computed(() => {
  return props.show
})
// 弹窗关闭
const emit = defineEmits(['close'])
const onClose = () => {
  emit('close', 'awardRank')
}
</script>
<style lang="scss" scoped>
@import './style.scss';
</style>
